/**
 * ListMusicServiceImp.java
 *
 *
 * $LastChangedBy: allen $
 * $LastChangedDate: 2007-11-26 11:29:11 +0800 $
 * $Revision: 1256 $
 */
package com.myspace.service.music;

import java.util.List;

import com.myspace.dao.MusicDao;
import com.myspace.domain.Music;

public class ListMusicServiceImp implements ListMusicService {

	MusicDao musicDao;

	public List<Music> findByYear(Long userId,String year,String pageNo){
		return musicDao.findByYear(userId,year,pageNo);
	}

	public MusicDao getMusicDao() {
		return musicDao;
	}

	public void setMusicDao(MusicDao musicDao) {
		this.musicDao = musicDao;
	}

	public List<Music> findByCategory(Long userId,String category, String pageNo) {
		return musicDao.findByCategory(userId,category,pageNo);
	}

	public List<String> findAllCategory(Long userId) {
		return musicDao.findAllCategory(userId);
	}

	public int findCountByYear(Long userId, String year) {

		return musicDao.findCountByYear(userId, year);
	}

	public int findCountByCategory(Long userId, String category) {

		return musicDao.findCountByCategory(userId, category);
	}

	public List<String> findAllYear(Long userId) {
		return musicDao.findAllYear(userId);
	}
}
